﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LEET.CommonInterfaces.Compilers;

namespace Tedds_Tool.Compilers.LEET
{
    class NUnitAssertionSet : AssertionSet
    {
        public string assertEquality(string expected, string actual)
        {
            return "Assert.AreEqual(" + expected + ", " + actual + ");";
        }

        public string Header
        {
            get { return "using NUnit.Framework;\r\n"; }
        }

        public string ClassAnnotation
        {
            get { return "[TestFixture]"; }
        }

        public string TestAnnotation
        {
            get { return "[Test]"; }
        }

        public string assertNonEquality(string unExpected, string actual)
        {
            return "Assert.AreNotEqual(" + unExpected + ", " + actual + ");";
        }

        public string assertContains(string containing, string actual)
        {
            return "Assert.IsTrue(" + actual + ".ToString().Contains(" + containing + "));";
        }

        public string assertTrue(string actual)
        {
            return "Assert.IsTrue(" + actual + ");";
        }

        public string assertFalse(string actual)
        {
            return "Assert.IsFalse(" + actual + ");";
        }
    }
}
